package com.boco.ibssystem.business.service.impl;

import com.boco.biinjectionserviceapi.vo.Params;
import com.boco.ibssystem.business.mapper.WszyMapper;
import com.boco.ibssystem.business.service.IWszyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class WszyServiceImpl implements IWszyService {

    @Resource
    private WszyMapper wszyMapper;

    @Override
    public List<Map<String,Object>> rlzyGc(Params params) {
        List<Map<String,Object>> list = new ArrayList<>();
       Integer YSRS = wszyMapper.getYSRSCount(params);
        Map<String,Object> map1 = new HashMap<>();
        map1.put("YSRS",YSRS);
       Integer HSRS = wszyMapper.getHSRSCount(params);
        Map<String,Object> map2 = new HashMap<>();
        map2.put("HSRS",HSRS);
       Integer YJRS = wszyMapper.getYJRSCount(params);
        Map<String,Object> map3 = new HashMap<>();
        map3.put("YJRS",YJRS);
        list.add(map1);
        list.add(map2);
        list.add(map3);
        return list;


    }

    @Override
    public void qrkZys(Params params) {

    }

   /* @Override
    public void rlzyXlb(Params params) {

    }

    @Override
    public void rlzyZcb(Params params) {

    }*/

    @Override
    public void ylfwSrgs(Params params) {

    }

    @Override
    public void yljgFwsr(Params params) {

    }

    @Override
    public void ypsrZylb(Params params) {

    }

    @Override
    public void ypsrLxb(Params params) {

    }

    @Override
    public void yljgFl(Params params) {

    }

    @Override
    public List<Map<String,Object>> wysbs(Params params) {
        List<Map<String,Object>> list = new ArrayList<>();
        Integer un50sbs = wszyMapper.getUn50sbs(params);
        Integer bt50_100sbs = wszyMapper.get50_100sbs(params);
        Integer ab100sbs = wszyMapper.getAb100sbs(params);
        Map<String,Object> map1 = new HashMap<>();
        map1.put("un50sbs",un50sbs);
        Map<String,Object> map2 = new HashMap<>();
        map2.put("bt50_100sbs",bt50_100sbs);
        Map<String,Object> map3 = new HashMap<>();
        map3.put("ab100sbs",ab100sbs);
        list.add(map1);
        list.add(map2);
        list.add(map3);
        return list;

    }

    @Override
    public void yscwb(Params params) {

    }

    @Override
    public void hscwb(Params params) {

    }

    @Override
    public void cwsyqk(Params params) {

    }
}
